package accountManagementNew.service;

import accountManagementNew.common.base.PersonalQueryEntity;
import accountManagementNew.common.pojo.ConsumptionRecordPersonal;
import accountManagementNew.common.vo.BlurDataVO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 个人消费记录表 服务类
 * </p>
 *
 * @author lihonbin
 * @since 2025-09-28
 */
public interface IConsumptionRecordPersonalService extends IService<ConsumptionRecordPersonal> {
    Page<ConsumptionRecordPersonal> queryPersonalConsumptionRecordByUsernameAndCategoryId(Page<ConsumptionRecordPersonal> page,
                                                                                          PersonalQueryEntity queryEntity);

    List<ConsumptionRecordPersonal> queryAllByCategoryIdAndUserId(PersonalQueryEntity personalQuery);

    boolean modifyRecord(ConsumptionRecordPersonal consumptionRecordPersonal);

    /**
     * 查询所有系统预设消费类型的模糊数据
     * @param id 用户id
     * @return 模糊数据
     */
    List<BlurDataVO> queryAllBlurDataByUserId(String id);

    /**
     * 删除指定的消费记录
     * @param id 删除的消费记录id
     * @return 删除结果
     */
    boolean deletById(String id);
}
